<?php


namespace app\api\validate;


use app\common\validate\BaseValidate;

class OrderValidate extends BaseValidate
{
    protected $rule = [
        'order_no' => 'require',
        'order_id' => 'require',
        'pay_way' => 'require',
    ];

    protected $field = [
        'order_no' => '订单号',
        'order_id' => '订单ID',
        'pay_way' => '支付方式',
    ];
    protected $scene = [
        "order_no" => [
            'order_no',
        ],
        "cancelOrder" => [
            'order_id',
        ],
        "takeDelivery" => [
            'order_id',
        ],
        "deleteOrder" => [
            'order_id',
        ],
        "confirmPayment" => [
            'order_no',
            'pay_way',
        ],
    ];
}